package com.qiche.service.impl;

import com.qiche.model.BankinfoChangeLog;
import com.qiche.service.BankinfoChangeLogService;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * Created by Linzw on 2018/01/24.
 */
@Service("bankinfoChangeLogService")
public class BankinfoChangeLogServiceImpl extends BaseService<BankinfoChangeLog> implements BankinfoChangeLogService {

    @Override
    public List<BankinfoChangeLog> selectListByMerchantId(Long merchantId) {
        Example example=new Example(BankinfoChangeLog.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andEqualTo("merchantId",merchantId);
        List<BankinfoChangeLog> logList = mapper.selectByExample(example);

        return logList;
    }
}
